package com.ruoyi.ax.service;

import java.util.List;
import com.ruoyi.ax.domain.AxRechargeRecord;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 充值记录Service接口
 * 
 * @author ruoyi
 * @date 2025-05-07
 */
public interface IAxRechargeRecordService 
{
    /**
     * 查询充值记录
     * 
     * @param id 充值记录主键
     * @return 充值记录
     */
    public AxRechargeRecord selectAxRechargeRecordById(Long id);

    // 用户充值
    public  int  userRecharge(AxRechargeRecord axRechargeRecord);
    // pc 充值
    public  int  pcUserRecharge(AxRechargeRecord axRechargeRecord);

    /**
     * 查询充值记录列表
     * 
     * @param axRechargeRecord 充值记录
     * @return 充值记录集合
     */
    public List<AxRechargeRecord> selectAxRechargeRecordList(AxRechargeRecord axRechargeRecord);

    /**
     * 新增充值记录
     * 
     * @param axRechargeRecord 充值记录
     * @return 结果
     */
    public int insertAxRechargeRecord(AxRechargeRecord axRechargeRecord);

    /**
     * 修改充值记录
     * 
     * @param axRechargeRecord 充值记录
     * @return 结果
     */
    public int updateAxRechargeRecord(AxRechargeRecord axRechargeRecord);

    /**
     * 批量删除充值记录
     * 
     * @param ids 需要删除的充值记录主键集合
     * @return 结果
     */
    public int deleteAxRechargeRecordByIds(Long[] ids);

    /**
     * 删除充值记录信息
     * 
     * @param id 充值记录主键
     * @return 结果
     */
    public int deleteAxRechargeRecordById(Long id);


    // 微信获取支付参数
    public String getWxPaySign(AxRechargeRecord axRechargeRecord);


    // 微信获取支付参数
    public String getZfbPaySign(AxRechargeRecord axRechargeRecord);

    // 微信支付回调
    public  String   rechargeWxPayNotify(HttpServletRequest request, HttpServletResponse response);
}
